placesview: Fix wrong property type when creating a GtkLabel
authorTing-Wei Lan <lantw@src.gnome.org>
Wed, 5 Aug 2015 15:09:03 +0000 (23:09 +0800)
committerTing-Wei Lan <lantw@src.gnome.org>
Wed, 5 Aug 2015 15:31:13 +0000 (23:31 +0800)
The type of xalign property of GtkLabel is float, not int. Using wrong type
crashes GtkFileChooser on x86_64 when compiling with clang.

https://bugzilla.gnome.org/show_bug.cgi?id=753284

gtk/gtkplacesview.c

index bbeb6c271f0c934c7f2d376ac4a4a01afdda0333..038ba83e4a58606bd8b870e9773cf53823d50d62 100644 (file)
@@ -1663,7 +1663,7 @@ listbox_header_func (GtkListBoxRow *row,
                             "hexpand", TRUE,
                             "use_markup", TRUE,
                             "label", text,
-                            "xalign", 0,
+                            "xalign", 0.0f,
                             NULL);
 
       g_object_set (label,